home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Macintosh Drag and Drop / Demo Applications / FinderDrag / FinderStuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-09  |  1.3 KB  |  48 lines  |  [TEXT/MPS ]

  1.  
  2.  
  3. #ifndef __FINDERSTUFF__
  4. #define __FINDERSTUFF__
  5.  
  6. #include <Drag.h>
  7. #include "FinderRegistry.h"
  8.  
  9.  
  10. //
  11. // PromiseHFS constants
  12. //
  13. #define kRealSpecItemRef        1
  14. #define flavorTypeBlankSpec     'Blnk'
  15. #define flavorTypeRealSpec     'Real'
  16.  
  17.  
  18. //
  19. // These two should be in FinderRegistry.h, but they ain't
  20. //
  21. #define keyLocalPositionList    'mvpl'
  22. #define keyGlobalPositionList    'mvpg'
  23.  
  24.  
  25.  
  26. OSErr InitFinderAE();
  27. Boolean HaveScriptableFinder();
  28. Boolean FinderIsRunning();
  29. OSErr MakeAppleEvent(AEEventClass aeClass, AEEventID aeID, 
  30.             AEDesc *target, AppleEvent *ae);
  31. OSErr SendAppleEvent(AppleEvent *ae, AppleEvent *reply, AESendMode sendMode);
  32. OSErr CloneMoveDescList(AEDescList *objsToMove, FSSpecPtr nuLocation, 
  33.             Point globalPt, Boolean replace, Boolean moveFlag);
  34. OSErr BuildHFSDescList(DragReference theDrag, AEDescList *hfsList);
  35. OSErr HandleDragCloneMove(DragReference theDrag);
  36. OSErr GetDropFSSpec(DragReference theDrag, FSSpecPtr dirSpec);
  37. OSErr GetIconSuiteFromFinder(FSSpecPtr, Handle *);
  38. OSErr BuildIconSuiteFromAEDesc(Boolean, Handle *, AEDesc *);
  39. OSErr MakeSpecifierForFile(FSSpecPtr hfsObj, AEDesc *fileSpecifier);
  40. OSErr MakePropertySpecifierForSpecifier(DescType property, 
  41.             AEDesc *ofSpecifier, AEDesc *propertySpecifier);
  42. OSErr AddSpecToDescList(AEDescList *descList, FSSpecPtr theSpec);
  43.  
  44.  
  45. void FailOSErr(OSErr err);
  46.  
  47.  
  48. #endif